import java.sql.ResultSet;
import java.sql.SQLException;


public class Company {
	private int companyId = -1;
	private String name = "";
	
	public Company(ResultSet rs) throws SQLException {
		int id = rs.getInt(CompanyManager.COMPANY_ID_COLUMN);
		setCompanyId(id);
		String name = rs.getString(CompanyManager.NAME_COLUMN);
		setName(name);
	}
	
	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	public int getCompanyId() {
		return companyId;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
}
